const app = getApp();
const { AskPage } = app._require('common/index');
const formMixin = app._require("mixins/form.mixin.js").default;
import share from "./handleShare.js";
AskPage({
    /**
     * 页面的初始数据
     */
    name: "taskShareForm",
    mixins: [formMixin],
    data: {
        isCms: "0",
        shareId: "",
        taskId: "",
    },
    onLoad(options) {
        let { isCms, shareId, taskId } = options;
        this.setData({
            isCms,
            shareId,
            taskId,
        });
    },
    sure() {
        if (this.data.isCms === "1") {
            share.handleCms(this.data);
        } else {
            share.handleForm(this.data);
        }
    },
});
